package demo1;

class Person {
    public String name;
    public String gender;
    public int age;

    public void sleep(){
        System.out.println(name+"在睡觉");
    }

    public void Learn() {
        System.out.println(name+"在学习");
    }
}
class Student extends Person {
    public String stuNumber;

    public void Learn() {
        System.out.println(name+"在学习");
    }
}

class Teacher extends Person {

    public void Teach() {
        System.out.println(name+"在讲课");
    }
}


public class TestDemo1 {
    public static void main(String[] args) {
        Student s = new Student();
    }
}
